<?php

class Nuo_View_Helper_HeadBase extends Zend_View_Helper_Abstract
{
    public function headBase()
    {
        return $this;
    }

    public function __toString()
    {
        $req = Zend_Controller_Front::getInstance() -> getRequest();
        $url = $req -> getScheme() . '://' . $req -> getHttpHost() . $req -> getBaseUrl();
        return '<base href="' . $url . '"/>';
    }

}